import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
	state: {
		coachid: {}, // 登陆信息
		sessionid: "", //登陆之后返回来的sessionid
		id: "", //获取地址id
		openid:"", //微信用户openid
	},

	mutations: {
		getCoachid(state, data) {
			state.coachid = data;
		},
		getUser(state, v) {
			state.sessionid = v;
		},
		getOpenid(state, item) {
			state.openid = item;
		},
	}
})